package com.leyou;

import com.leyou.order.config.IdWorkerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 处理请求和响应的方法
 *
 * @version V1.0
 * @package com.leyou
 * @description:
 * @author: pc
 * @date: 2019/7/13 18:56
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.leyou.Order.mapper")
@EnableConfigurationProperties(IdWorkerConfig.class)
public class LyOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyOrderApplication.class, args);
    }
}
